package component.flit
{
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import flash.text.TextField;
	
	import obecto.core.FLController;
	
	[EventHandler(dispatcher="panel", event="click", handler="panelClick")]
	[EventHandler(event="click", handler="componentClick")]
	public class FlitController extends FLController
	{
		[ViewContract] public var panel : MovieClip;
		
		[EventHandler(event="rollOver", handler="labelRollOver")]
		[EventHandler(event="rollOut", handler="labelRollOut")]
		[ViewContract] public var label : TextField;
		
		public function FlitController()
		{
			super();
		}
		
		handler function componentClick(e : MouseEvent) : void 
		{
			trace("CLICK component");
		}
		
		handler function panelClick(e : MouseEvent) : void 
		{
			trace("CLICK panel");
		}
		
		handler function labelRollOver(e : MouseEvent) : void 
		{
			trace("ROLL OVER label");
		}
		
		handler function labelRollOut(e : MouseEvent) : void 
		{
			trace("ROLL OUT label");
		}
		
	}
}